package com.example.demo.client.evt.sysbasequery;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * Description:
 *
 * @Author zmf
 * @Date 2018/12/13  11:37
 */
@ApiModel("判断角色名称是否存在")
public class isRoleNameExistEvt implements Serializable {
    private static final long serialVersionUID = 4334770062802558097L;
    @ApiModelProperty(value = "角色ID",notes = "新增为空修改时必填")
    private Long roleId;
    @ApiModelProperty(value = "角色名称",required = true)
    @NotBlank
    private String roleName;
    @ApiModelProperty("区域id")
    private Long regionId;

    public Long getRegionId() {
        return regionId;
    }

    public void setRegionId(Long regionId) {
        this.regionId = regionId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public String toString() {
        return "isRoleNameExistEvt{" +
            "roleId=" + roleId +
            ", roleName='" + roleName + '\'' +
            '}';
    }
}
